import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class a here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Letrero extends Actor
{
    /**
     * Act - do whatever the letrero wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public Letrero(String mensaje)
    {
        this.despliega(mensaje);
    }
    
    public void despliega(String mensaje)
    {
        super.setImage(
        new GreenfootImage(mensaje,20,
        java.awt.Color.YELLOW,
        java.awt.Color.BLACK)
        );
    }
    public void act() 
    {
        
        // Add your action code here.
    }    
}

